package Log

import "gitee.com/tym_hmm/hlog"

var AppLog *CoreLog

type CoreLog struct {
	*hlog.Log
}

func NewLog(isDebug bool) *CoreLog {
	logLevel:=hlog.DEBUG
	if !isDebug {
		logLevel = hlog.INFO
	}
	return &CoreLog{Log: hlog.NewStdLog(hlog.Level(logLevel))}
}